@charset "UTF-8";

.compare-area {
    width: 260px;
    &:not(:last-of-type) {
        margin-right: 53px;
    }
    .product-single-compare {
        width: 100%;
        border: 1px solid $border-color;
        color: $brand-secondary;
        .attr-title {
            width: 100%;
            height: 28px;
            line-height: 28px;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            background:rgba(246,246,246,1);
        }
        /* 顶部图片标题价格区域 */
        .product-container {
            padding: 12px 50px;
            .image {
                width: 160px;
                height: 160px;
                margin: 0 auto;
                overflow: hidden;
                font-size: 0;
                text-align: center;
                img {
                    height: 100%;
                }
            }
            .title {
                width: 160px;
                height: 38px;
                margin: 6px auto;
                font-size: 14px;
            }
            .price-block {
                font-size: 16px;
                white-space: nowrap;
                .new-price {
                    color: $brand-primary;
                }
                .old-price {
                    color: $old-price;
                    text-decoration: line-through;
                }
            }
        }
        /* 固定属性区域 */
        .attr-block {
            .attr-value {
                min-height: 44px;
                padding: 12px 24px;
                font-size: 14px;
                text-align: center;
                &.model,
                &.brand {
                    white-space: nowrap;
                }
                &.description {
                    text-align: left;
                    img {
                        width: 100%;
                    }
                }
            }
        }
    }

    /* 按钮操作区域 */
    .operation {
        width: 100%;
        padding: 0 15px 21px;
        white-space: nowrap;
        .button {
            display: inline-block;
            width: 106px;
            height: 40px;
            line-height: 40px;
            cursor: pointer;
            text-align: center;
            color: #fff;
            font-size: 16px;
            transition: opacity .3s 0s ease;
            vertical-align: top;
            &:hover {
                opacity: .8;
            }
            &.add {
                margin-right: 15px;
                background-color: #000;
            }
            &.remove {
                background-color: #F06767;
            }
        }
    }
}
